try:
    import cjson as json
    loader = json.decode
    dumper = json.encode
except ImportError:
    import sys
    print >> sys.stderr, 'WARNING: cjson module not installed; relying upon the *much* slower python json module.'

    import json
    loader = json.loads
    dumper = json.dumps


def loads(s):
    return loader(s)


def dumps(s):
    return dumper(s)


if __name__ == '__main__':
    print loads(dumps([1, 2, 3]))
